// components/merchantcard/index.js
Component({
  externalClasses: ['merchant-card-class'],
  /**
   * 组件的属性列表
   */
  properties: {
    info: {
      type: Object,
      value: {}
    },
    canNext: {
      type: Boolean,
      value: true
    },
    canShare: {
      type: Boolean,
      value: false
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    
  },

  /**
   * 组件的方法列表
   */
  methods: {
    onClickMerchantIconAction: function () {
      if(this.data.canNext) {
        
        this.triggerEvent("onIconAction");
      }
    },
    onClickMerchantShareAction: function () {
      this.triggerEvent("onShareAction");
    },
  }
})
